<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let i = 1;
    let sum = 0;
    for (i; i <= 100; i++) {
      console.log(i + "岁");
      if (i % 2 === 0) {
        sum = sum + i;
      }
    }
    console.log("一百内的偶数和：" + sum);
    for (let x = 1; x <= 5; x++) {
      document.write("⭐</br>");
    }

    let arr = ["马超", "赵云", "关羽", "张飞", "黄忠"];
    for (let x = 1; x <= arr.length; x++) {
      document.write(arr[x - 1] + "</br>");
    }
  </script>
</body>

</html>